package com.woniu.account.service;

import com.github.pagehelper.PageInfo;
import com.woniu.account.dto.admin.AdminDto;
import com.woniu.account.form.admin.AddAdminParam;
import com.woniu.account.model.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.account.param.admin.AdminLoadParam;
import com.woniu.account.param.admin.AdminLoginParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杜岷芫
 * @since 2024年07月11日
 */
public interface AdminService extends IService<Admin> {

    AdminDto login(AdminLoginParam toBean);

    PageInfo<AdminDto> load(AdminLoadParam toBean);

    void changeState(Integer adminId, Integer state);

    AdminDto addAdmin(AddAdminParam toBean);
}
